/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import javax.persistence.*;
import play.data.validation.*;
import play.db.jpa.*;

/**
 *
 * @author GJean
 */
@Entity
@Table(name="vehicules")
public class Vehicule extends Model {

    ;
    @Required
    public String type;
    @Required
    public String brand;
    @Required
    public String model;
    @Required
    public String code;

    public Vehicule(String type, String brand, String model, String code) {
        this.type = type;
        this.brand = brand;
        this.model = model;
        this.code = code;


    }

    @Override
    public String toString() {
        return this.model;
    }
}
